﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;

namespace Haushaltsbuch.DataAcces.Entities
{
    [Serializable]
    public class Role
    {
        public Role(int id, string name)
        {
            Id = id;
            Name = name;
        }

        public Role()
        {
        }

        public int  Id { get; set; }
        [MaxLength(255)]
        public string Name { get; set; }
    }
}